package com.project.dto;

import lombok.Data;
import org.jetbrains.annotations.NotNull;

import java.math.BigDecimal;

/**
 * 单条流水项 DTO
 */
@Data
public class TransactionItemDTO {
//    @NotNull(message = "材料ID不能为空")
    private Long materialId;

//    @NotNull(message = "操作类型不能为空")
    private Integer transactionType; // 1:入库, 0:出库

//    @NotNull(message = "数量不能为空")
    private BigDecimal quantity;

    private Long relatedAcceptanceId;
    private Long relatedRequestId;
    private String remark;
}